package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.ProductAttrValueEntity;
import com.atguigu.gulimall.product.vo.AttrRespVo;
import com.atguigu.gulimall.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * ??Ʒ?
 *
 * @author Farewell
 * @email farewell777@foxmail.com
 * @date 2021-12-17 17:21:24
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryPageBaseList(Map<String, Object> params, Long catelogId, String attrType);

    AttrRespVo getAttrRespVoById(Long attrId);

    void updateAttrVo(AttrVo attrVo);

    List<ProductAttrValueEntity> baseListForSpu(Long spuId);

    void updateBySpuId(Long spuId, List<ProductAttrValueEntity> productAttrValueEntityList);

    List<Long> getAttrSearchByAttrIds(List<Long> attrIds);
}

